
<!DOCTYPE html>
<html lang="en">
<head>      
    <meta charset="UTF-8">
    <title>main</title>     
    <link href="/static/bootstrap/dist/css/bootstrap.css" rel="stylesheet"></link>
     <link href="/static/main.css" rel="stylesheet"></link>
</head>     
<body>      
        <div class="container">
        	<!-- <div class="jumbotron email col-md-4">
        		<h3 class="people">To : <i >some body</i><img src="/static/images/zhangyang.jpg" class="img-circle header-jpg"></img></h3>
        		<p class="content">some ...</p>
        		<p class="by">written by :<code > writer </code></p>
        	</div>
 -->        	
        	{% if  found== "ok" %}
    		{% for message in messages %}
        	<div class="jumbotron email col-md-4 col-xs-10" style="
        		background: url({{ message[4]}}) no-repeat;
        	">
        		<h3 class="people">To : <i >{{ message[1] }}</i><img src="{{ message[4] }}" class="img-circle header-jpg"></img></h3>
        		<p class="content">{{ message[2] }}</p>
        		<p class="by">written by :<code > {{ message[3] }} </code></p>
        	</div>	
        	{% end %}
        	{% end %}
        </div>


    	<div class="new-email " moved="un" id="new-user">

			<form action="/email" enctype="multipart/form-data" method="post" >

				<div class="input-group item people" >

					<input type="text" name="to" style="width:140px" class="form-control" id="exampleInputEmail2" placeholder="To : "></span>
					
				</div>

				<input class="item input-form" type="file" name="file" placeholder="background"> </input>
				<textarea name="content"  class="form-control item" placeholder="Type conten for your words" rows="8"></textarea>
				<input type="text" name="writer" style="float:right;width:100px;margin-right: 20px;" class="form-control" id="exampleInputEmail2" placeholder="Written by : "></input>
				</br></br>
				<button class="btn btn-default" name="submit" type="submit " style="float: right;width:70px;" value="submit">提交</button>
			</form>	

    		
    	</div>

        <script src="static/jquery/dist/jquery.min.js"></script>
        <script src="static/bootstrap/dist/js/bootstrap.js"></script>
        <script type="text/javascript" src="/static/js/main.js"></script>
</body>     
</html>
	